package com.demo.pattern.bridge;

/**
 * @author sourire
 * @version 1.0
 * @date 2020/8/26 11:36
 */
public class Client {
    public static void main(String[] args) {
        DataRender txt1 = new Txt(new Oracle());
        txt1.dataConvert();
        System.out.println("===========");
        DataRender txt2 = new Txt(new Mysql());
        txt2.dataConvert();
        System.out.println("===========");
        DataRender pdf1 = new Pdf(new Oracle());
        pdf1.dataConvert();
        System.out.println("===========");
        DataRender pdf2 = new Pdf(new Mysql());
        pdf2.dataConvert();
    }
}
